package net.meilly.learn.demo.springboot.websocket.vo;

import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description
 * @Author Wang.sj
 * @Data 2023/10/17 10:54
 */
@Data
@ToString
public class Message implements Serializable {
    @Serial
    private static final long serialVersionUID = 8231644733373312370L;

    private MessageType type;
    private String content;
    private String sender;
    private String toUser;

    public enum MessageType {
        CHAT,
        JOIN,
        LEAVE
    }
}
